<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
     <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <%@taglib prefix="s" uri="/struts-tags" %>
    <%@page import="user.User"%>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
  <title>施工方案</title>
  <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.lightbox.js"></script>
</head>
<body>
<%User user = (User)request.getSession().getAttribute("user");
	if(user!=null&&user.getUser_role().iterator().next().getId()==3){
%>
  <tiles:insertTemplate template="/WEB-INF/layout_admin/layout.jsp" flush="true"> 
	<tiles:putAttribute name="body" >
		<div class="main-content">
		<table width="%90">
		<tr>
		<td>
		<h1>施工流程图:</h1><br />
		</td>
		</tr>
		<tr>
		<td>
		<img src="getPhotoById.action?constructionScheme.photo.picId=${constructionScheme.photo.picId}" width="370px" height="370px"/>
		<a rel="lightbox" href="getPhotoById.action?constructionScheme.photo.picId=${constructionScheme.photo.picId}">查看大图</a>
		</td></tr>
		<tr><td>
		<h1>施工内容与组织:</h1><br />
		</td>
		</tr>
		<tr>
		<td>
		${constructionScheme.content}
		</td></tr>
		</table>
		
		</div>
	</tiles:putAttribute>
	</tiles:insertTemplate> 
<%}else{ %>
<tiles:insertTemplate template="/WEB-INF/layout/layout.jsp" flush="true"> 
		<tiles:putAttribute name="right" >
		<table width="%90">
		<tr>
		<td>
		<h1>施工流程图:</h1>
		</td>
		</tr>
		<tr>
		<td>
		<c:if test="${constructionScheme!=null}">
			<img src="getPhotoById.action?constructionScheme.photo.picId=${constructionScheme.photo.picId}" width="600px" height="400px"/>
			<a rel="lightbox" href="getPhotoById.action?constructionScheme.photo.picId=${constructionScheme.photo.picId}">查看大图</a>
		</c:if>
		</td></tr>
		<tr><td>
		<h1>施工内容与组织:</h1>
		</td>
		</tr>
		<tr>
		<td>
		${constructionScheme.content}
		</td></tr>
		</table>
	</tiles:putAttribute>
</tiles:insertTemplate> 

<%} %>
</body>
</html>



